-- GENERATED SPELL FOR [Blightguard] --


function spell0_28603(pUnit, Event) --@Invisibility,Self--
pUnit:FullCastSpellOnTarget(52060,pUnit)
pUnit:RegisterEvent('Sorts_28603', 596, 1)
end

function spell1_28603(pUnit, Event) --@Shadowstrike,n/a--
pUnit:FullCastSpellOnTarget(33914,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28603', 598, 1)
end

function Sorts_28603(pUnit, Event)
local choix_sorts_28603 = math.random(0, 1)
if choix_sorts_28603 == 0 then
pUnit:RegisterEvent('spell0_28603', 1, 1)
end
if choix_sorts_28603 == 1 then
pUnit:RegisterEvent('spell1_28603', 1, 1)
end
end

function mob28603_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28603', math.random(1500, 3000), 1)
end

function mob28603_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28603_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28603_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28603, 1, 'mob28603_Action')
RegisterUnitEvent(28603, 2, 'mob28603_Leave')
RegisterUnitEvent(28603, 3, 'mob28603_Kill')
RegisterUnitEvent(28603, 4, 'mob28603_Die')
